#ifndef START_H
#define START_H

#include <QWidget>
#include "firstfloor.h"
#include "over.h"
#include "success.h"
#include "secondfloor.h"
#include <QApplication>
#include <QTime>
#include "sfsuccess.h"
#include "sfover.h"
#include "thirdfloor.h"

namespace Ui {
class Start;
}

extern int bloods;    //外部变量bloods
extern int score;

class Start : public QWidget
{
    Q_OBJECT

public:
    explicit Start(QWidget *parent = 0);
    ~Start();
    void dealover();
    void dealsuccess();
    void dealffover();
    void dealffsuccess();
    void dealsfover();
    void dealsfsuccess();
    void dealsf();
    void dealsfsnext();
    void dealsfonext();
    void dealtfover();
    void dealtfsuccess();

private slots:
    void on_pushButton_clicked();

private:
    Ui::Start *ui;
    FirstFloor ff;
    SecondFloor sf;
    SFSuccess sfs;
    SFOver sfo;
    ThirdFloor tf;
    Over o;
    Success s;
    void sleep(unsigned int msec);
    QTime reachtime;
};

#endif // START_H
